import request from '@/utils/request.js'

export const getUserAdList = (params) => {
  return request({
    url: '/expenses/index',
    method: 'get',
    params
  })
}

export const addUserAdList = (data) => {
  return request({
    url: '/expenses/index',
    method: 'post',
    data
  })
}

export const getUserAdInfo = (id) => {
  return request({
    url: '/expenses/index/' + id,
    method: 'get',
  })
}

export const editUserAdList = (data) => {
  return request({
    url: '/expenses/index/' + data.id,
    method: 'put',
    data
  })
}

export const delUserAdList = (id) => {
  return request({
    url: '/expenses/index/' + id,
    method: 'delete',
  })
}
